package com.github.elliot.usercenter.service;

import com.github.elliot.usercenter.dao.PermissionRepository;
import com.github.elliot.usercenter.po.Permission;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import reactor.core.publisher.Flux;

@Service
public class PermissionService {

    @Autowired
    private PermissionRepository permissionRepository;

    public Flux<Permission> findPermissionListByUserNo(String userNo){
        return permissionRepository.findPermissionListByUserNo(userNo);
    }
}
